//
//  ChooseViewController.h
//  sock02
//
//  Created by Cui Luhai on 10-4-19.
//  Copyright 2010 GoldenDigit. All rights reserved.
//
#define minGestureLength 10
#define maxVariance 5
#define maxshoes 3
#define maxsocks 2

#import <UIKit/UIKit.h>
#import "SwitchDataBase.h"


@interface ChooseViewController : UIViewController {
	IBOutlet UIToolbar *buttonBar,*topBar;
	
	IBOutlet UIImageView *image1,*image2,*image3,*image4;
	CGPoint gestureStartPoint;
	NSString *dirString;
	int i,j;	
	BOOL isMoved, barIsInSight;
	NSMutableArray *sockImgUrls;
	NSMutableArray *shoeImgUrls;
	SwitchDataBase *dbController;
}
@property (nonatomic ,retain) UIToolbar *buttonBar;
@property (nonatomic ,retain) UIToolbar *topBar;

@property (nonatomic ,retain) UIImageView *image1;
@property (nonatomic ,retain) UIImageView *image2;
@property (nonatomic ,retain) UIImageView *image3;
@property (nonatomic ,retain) UIImageView *image4;
@property (nonatomic ,retain) NSString *dirString;
@property int i;
@property int j;
@property CGPoint gestureStartPoint;
@property BOOL isMoved;
@property BOOL barIsInSight;
@property (nonatomic ,retain) NSMutableArray *sockImgUrls;
@property (nonatomic ,retain) NSMutableArray *shoeImgUrls;
@property (nonatomic ,retain) SwitchDataBase *dbController;

- (void)changePic:(NSString *)direction;
- (IBAction)chooseSockByColor:(id)sender;
- (IBAction)chooseShoeByColor:(id)sender;
- (IBAction)showAllSock:(id)sender;
- (IBAction)showAllShoe:(id)sender;
@end
